import request from '@/utils/request'

// 查询肉鸡孵化记录列表
export function listChickenHatchRecords(query) {
  return request({
    url: '/btlfbreed/chickenHatchRecords/list',
    method: 'get',
    params: query
  })
}

// 查询肉鸡孵化记录详细
export function getChickenHatchRecords(id) {
  return request({
    url: '/btlfbreed/chickenHatchRecords/' + id,
    method: 'get'
  })
}

// 新增肉鸡孵化记录
export function addChickenHatchRecords(data) {
  return request({
    url: '/btlfbreed/chickenHatchRecords',
    method: 'post',
    data: data
  })
}

// 修改肉鸡孵化记录
export function updateChickenHatchRecords(data) {
  return request({
    url: '/btlfbreed/chickenHatchRecords',
    method: 'put',
    data: data
  })
}

// 删除肉鸡孵化记录
export function delChickenHatchRecords(id) {
  return request({
    url: '/btlfbreed/chickenHatchRecords/' + id,
    method: 'delete'
  })
}
// 初始化下拉框
export function getOptionselect() {
  return request({
    url: '/api/optionSelect',
    method: 'get'
  })
}